<?php // app/plugins/views/content_posts/system_edit.ctp ?>

<div class="flash">
	<?php echo $this->Session->flash();?>
</div>
<div id="form-area" class="form-wrapper">
	<?php echo $this->Form->create('ContentPost', array('type'=>'POST'));?>
	<?php echo $this->Form->select('status', array('public' => 'public', 'pending' => 'pending'), null, array('label' => 'Status'), $empty = false);?>
	<?php echo $this->Form->input('seo_name');?>
	<?php echo $this->Form->input('title', array('type' => 'text'));?>
	<?php echo $this->Form->input('excerpt', array('id' => 'excerpt', 'style'=>'width:100%;height:100px'));?>
	<?php echo $this->Form->input('content', array('id' => 'content', 'style'=>'width:100%;height:400px'));?>
	<?php echo $this->Form->end('Submit');?>
</div>
<?php echo $this->Html->script('pages/system_manage.js', array('inline' => false));?>
<?php echo $this->Html->scriptStart(array('inline' => false))?>
	bkLib.onDomLoaded(function() {
		nicEditors.allTextAreas({
			fullPanel : true, 
			iconsPath:'http://youbrainy.com/js/nicEdit/nicEditorIcons.gif'
		});
	});
<?php echo $this->Html->scriptEnd();?>